//登入
const login = data => ajax("post", "../php/login.php", data)

//注册
const reg = data => ajax('post', "../php/reg.php", data)

//商品列表
const goodsList = data => ajax('post', "../php/goods_list.php", data)

//删除账号
const deluser = data => ajax('post', "../php/deluser.php", data)

//搜索、分页、排序
const all = data => ajax('get', "../php/all.php", data)

//商品详情页信息
const detail = data => ajax('get', "../php/detail.php", data)

//展示购物车
const cart = data => ajax('post', "../php/cart.php", data)

//加入购物车
const addcart = data => ajax('post', "../php/addcart.php", data)

//删除购物车商品
const delcart = data => ajax('post', "../php/delcart.php", data)

//展示banner
const banner = data => ajax('get', "../php/banner.php", data)

//修改用户信息
const changeuser = data => ajax('post', "../php/changeuser.php", data)

//获取用户信息
const getuser = data => ajax('post', "../php/getuser.php", data)